package com.han.fu.api.business.model.ao;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户绑定信息
 *
 * @author: star.zhu
 * @date: 2021-08-06
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class BindingAo {

    /**
     * UnionID
     */
    @NotBlank(message = "UnionID不能为空")
    private String unionId;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    @Size(max = 50, message = "账号最长不能超过50")
    private String account;

    /**
     * 密码(BASE64编码)
     */
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 50, message = "密码长度最小为6位最大为50位")
    private String password;

}
